package com.site.wisdom_construction.service.iotModule;

import com.site.wisdom_construction.dao.iotModule.WisdomElectricityEquipmentDao;
import com.site.wisdom_construction.entity.iotModule.WisdomElectricityEquipment;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2021/12/17
 * @Description
 */
@Service
public class WisdomElectricityEquipmentService implements WisdomElectricityEquipmentDao {
    @Autowired
    private WisdomElectricityEquipmentDao wisdomElectricityEquipmentDao;

    @Override
    public int insertWisdomElectricityEquipment(Map map) {
        return wisdomElectricityEquipmentDao.insertWisdomElectricityEquipment(map);
    }

    @Override
    public WisdomElectricityEquipment findWisdomElectricityEquipmentByDeviceNumber(Map map) {
        return wisdomElectricityEquipmentDao.findWisdomElectricityEquipmentByDeviceNumber(map);
    }

    @Override
    public int updateWisdomElectricityEquipmentByGateStatus(Map map) {
        return wisdomElectricityEquipmentDao.updateWisdomElectricityEquipmentByGateStatus(map);
    }

    @Override
    public int updateWisdomElectricityEquipmentByStatus(Map map) {
        return wisdomElectricityEquipmentDao.updateWisdomElectricityEquipmentByStatus(map);
    }

    @Override
    public List<WisdomElectricityEquipment> countWisdomElectricityEquipmentByGroup(Map map) {
        return wisdomElectricityEquipmentDao.countWisdomElectricityEquipmentByGroup(map);
    }
}
